package com.lovo.controller;


import com.lovo.bean.Supplier2;
import com.lovo.service.ISupplier2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lovo
 * @since 2022-09-17
 */
@RestController
@RequestMapping("hd/supplier2")
public class Supplier2Controller {

    @Autowired
    ISupplier2Service supplier2Service;

    @GetMapping("/findByType/{type}")
    List<Supplier2> findByType(@PathVariable("type") String type) {
        return supplier2Service.findByType(type);
    }

}
